from lianxi.xiecheng.boat_page import boat_page
from lianxi.xiecheng.card_page import card_page
from lianxi.xiecheng.oneday_page import oneday_page
from lianxi.xiecheng.hotel_page import hotel_page
from lianxi.xiecheng.login_page import login_page
from selenium import webdriver
import unittest
class xcheng(unittest.TestCase):
    def setUp(self) -> None:
        pass
    def tearDown(self) -> None:
        pass
    @classmethod
    def setUpClass(cls) -> None:
        cls.driver = webdriver.Chrome()
    @classmethod
    def tearDownClass(cls) -> None:
        cls.driver.quit()
    def test00(self):
        login_page(self.driver).login()
    def test01(self):
        hotel_page(self.driver).hotel() #酒店预订
    def test02(self):
        oneday_page(self.driver).oneday()#一日游
    def test_03(self):
        boat_page(self.driver).boat()#船票预订
    def test_04(self):
        card_page(self.driver).card()#礼品卡充值
runer = unittest.TestSuite()
runer.addTest(xcheng())